using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;
namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing CON_CONTRATOS information.
    /// </summary>
    [Serializable]
    [DesignerCategory("code")]
    public class FinAccionEpeData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String FIN_ACCION_EPE_TABLE = "FIN_ACCION_EPE";
        public const String FAE_ID_FIELD = "FAE_ID";
        public const String ACC_ID_FIELD = "ACC_ID";
        public const String FAE_NUMEROEPE_FIELD = "FAE_NUMEROEPE";
        public const String FAE_NUMEROEPE_ETC_FIELD = "FAE_NUMEROEPE_ETC";
        public const String FAE_FECHA_FIELD = "FAE_FECHA";
        public const String FAE_JUSTIFICACION_FIELD = "FAE_JUSTIFICACION";
        public const String FAE_OBJETO_FIELD = "FAE_OBJETO";
        public const String FAE_NUMERO_CONVENIO_FIELD = "FAE_NUMERO_CONVENIO";
        public const String FAE_VALOR_FIELD = "FAE_VALOR_EPE";
        public const String FAE_NUMERO_CDP_FIELD = "FAE_NUMERO_CDP";
        public const String FAE_VALOR_CDP_FIELD = "FAE_VALOR_CDP";

        public const String TPE_ID_FIELD = "TPE_ID";
        public const String FAE_FECHA_EPE_FIELD = "FAE_FECHA_EPE";
        public const String FAE_FECHA_CDP_FIELD = "FAE_FECHA_CDP";
        public const String FAE_ENTIDAD_CONVENIO_FIELD = "FAE_ENTIDAD_CONVENIO";
        public const String ZON_ID_REALIZACION_FIELD = "ZON_ID_REALIZACION";
        public const String RES_ID_REALIZACION_FIELD = "RES_ID_REALIZACION";
        public const String ZON_ID_EJECUCION_FIELD = "ZON_ID_EJECUCION";
        public const String RES_ID_EJECUCION_FIELD = "RES_ID_EJECUCION";
        public const String FAE_PLAZO_EJECUCION_FIELD = "FAE_PLAZO_EJECUCION";
        public const String FAE_OBSERVACIONES_GENERALES_FIELD = "FAE_OBSERVACIONES_GENERALES";
        public const String BPD_ID_FIELD = "BPD_ID";
        public const String USU_ID_FIELD = "USU_ID";

        public const String PLN_ID_FIELD = "PLN_ID";

        public const String TMP_ID_FIELD = "TMP_ID";
        public const String DEP_ID_SOLICITANTE_FIELD = "DEP_ID_SOLICITANTE";

        public const String FAE_ID_PADRE_FIELD = "FAE_ID_PADRE";

       // CAMBIOS NUEVOS
        public const String FAT_ID_FIELD = "FAT_ID";
        public const String FAE_DESCRIPCION_NECESIDAD_FIELD = "FAE_DESCRIPCION_NECESIDAD";
        public const String FAE_DESCRIPCION_ANALISIS_TECNICO_FIELD = "FAE_DESCRIPCION_ANALISIS_TECNICO";


        public const String FAE_MODALIDAD_SELECCION_FIELD = "FAE_MODALIDAD_SELECCION";
        public const String FAE_OBLIGACIONES_AGN_FIELD = "FAE_OBLIGACIONES_AGN";
        public const String FTE_ID_FIELD = "FTE_ID";
        public const String FAE_CERTIFICADO_FIELD = "FAE_CERTIFICADO";
        public const String FAE_CERTIFICADO_FECHA_FIELD = "FAE_CERTIFICADO_FECHA";
        public const String FAE_NUMERO_RADICADO_FIELD = "FAE_NUMERO_RADICADO";

        public const String FAE_TIEMPO_MESES_FIELD = "FAE_TIEMPO_MESES";
        public const String FAE_NIVEL_TABLA_FIELD = "FAE_NIVEL_TABLA";
        
        
        

        public FinAccionEpeData()
		{
			BuildDataTables();
		}
        protected FinAccionEpeData(SerializationInfo info, StreamingContext context)
		{
			//
		}
        /// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(FAE_ID_FIELD, typeof(Decimal));
            Columns.Add(ACC_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_NUMEROEPE_FIELD, typeof(String));
            Columns.Add(FAE_NUMEROEPE_ETC_FIELD, typeof(String));
            Columns.Add(FAE_FECHA_FIELD, typeof(String));
            Columns.Add(FAE_JUSTIFICACION_FIELD, typeof(String));
            Columns.Add(FAE_OBJETO_FIELD, typeof(String));
            Columns.Add(FAE_NUMERO_CONVENIO_FIELD, typeof(String));
            Columns.Add(FAE_VALOR_FIELD, typeof(Decimal));
            Columns.Add(FAE_NUMERO_CDP_FIELD, typeof(String));
            Columns.Add(FAE_VALOR_CDP_FIELD, typeof(Decimal));

            Columns.Add(TPE_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_FECHA_EPE_FIELD, typeof(DateTime));
            Columns.Add(FAE_FECHA_CDP_FIELD, typeof(DateTime));
            Columns.Add(FAE_ENTIDAD_CONVENIO_FIELD, typeof(String));
            Columns.Add(ZON_ID_REALIZACION_FIELD, typeof(String));
            Columns.Add(RES_ID_REALIZACION_FIELD, typeof(String));
            Columns.Add(ZON_ID_EJECUCION_FIELD, typeof(String));
            Columns.Add(RES_ID_EJECUCION_FIELD, typeof(String));
            Columns.Add(FAE_PLAZO_EJECUCION_FIELD, typeof(String));
            Columns.Add(FAE_OBSERVACIONES_GENERALES_FIELD, typeof(String));
            Columns.Add(USU_ID_FIELD, typeof(Decimal));
            Columns.Add(BPD_ID_FIELD, typeof(Decimal));
            Columns.Add(PLN_ID_FIELD, typeof(Decimal));
            Columns.Add(TMP_ID_FIELD, typeof(Decimal));
            Columns.Add(DEP_ID_SOLICITANTE_FIELD, typeof(Decimal));
            Columns.Add(FAE_ID_PADRE_FIELD, typeof(Decimal));
            Columns.Add(FAT_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_DESCRIPCION_NECESIDAD_FIELD, typeof(String));
            Columns.Add(FAE_DESCRIPCION_ANALISIS_TECNICO_FIELD, typeof(String));
            Columns.Add(FAE_MODALIDAD_SELECCION_FIELD, typeof(String));
            Columns.Add(FAE_OBLIGACIONES_AGN_FIELD, typeof(String));
            Columns.Add(FTE_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_CERTIFICADO_FIELD, typeof(Decimal));
            Columns.Add(FAE_NUMERO_RADICADO_FIELD, typeof(String));

            Columns.Add(FAE_TIEMPO_MESES_FIELD, typeof(Decimal));
            Columns.Add(FAE_NIVEL_TABLA_FIELD, typeof(Decimal));

            Columns.Add(FAE_CERTIFICADO_FECHA_FIELD, typeof(String));

            
            
            
            



            TableName = FIN_ACCION_EPE_TABLE;
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }
        
    }
}